package cn.leaf.bak;

/**
*
 * description: 煎蛋
 *
 * @author Cyril
 * @version v1.0.0
 * @since 2021-07-18 11:44:13
 *
*/
public class FriedEgg extends Condiment {

    private final Pancake pancake;

    public FriedEgg(Pancake pancake) {
        this.pancake = pancake;
    }

    @Override
    public String getDesc() {
        return pancake.getDesc() + ", 煎蛋";
    }

    @Override
    public double price() {
        return pancake.price() + 2;
    }
}
